/*
@author https://yunp.top
 */

@file:JsModule("three")

package three

import org.w3c.dom.HTMLElement
import kotlin.js.Json

open external class WebGLRenderer(parameters: Json = definedExternally) {

    val domElement: HTMLElement

    fun setSize(width: Int, height: Int, updateStyle: Boolean = definedExternally)
    fun setAnimationLoop(callback: () -> Unit)
    fun render(scene: Object3D, camera: Camera)
    fun setPixelRatio(value: Double)
}